import request from '@/utils/request.js'
const api_name = '/ucenter/user/audits'

export function saveAudit (data) {
  return request({
    url: `${api_name}`,
    method: 'post',
    data
  })
}

export function getAuditById (id) {
  return request({
    url: `${api_name}/${id}`,
    method: 'get'
  })
}

export function updateAudit (data) {
  return request({
    url: `${api_name}`,
    method: 'put',
    data
  })
}
